package com.lzl.consumer.listener;

import com.lzl.consumer.Consumer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SpringBootCommandLineRunner implements CommandLineRunner {

    @Autowired
    Consumer consumer;

    @Override
    public void run(String... args) throws Exception {
        log.info("系统系统完成");
        consumer.start();
    }
}
